package com.example.hxds.bff.driver.service;

import com.example.hxds.bff.driver.controller.form.ClearNewOrderQueueForm;
import com.example.hxds.bff.driver.controller.form.ReceiveNewOrderMessageForm;

import java.util.ArrayList;


/**
 * 订单消息服务
 */
public interface NewOrderMessageService {


    /**
     * 清空新订单队列
     * @param form
     */
    void clearNewOrderQueue(ClearNewOrderQueueForm form);


    /**
     * 接收新订单消息
     * @param form
     * @return
     */
    ArrayList receiveNewOrderMessage(ReceiveNewOrderMessageForm form);
}
